<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('user_name',20)->comment('用户昵称');
            $table->string('email',20)->unique()->comment('邮箱');
            $table->string('password', 60)->comment('登录密码');
            $table->text('content')->comment('个性签名');
            $table->integer('sex')->comment('1男 2女');
            $table->integer('image')->comment('用户头像');
            $table->integer('aihao')->comment('爱好');
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('users');
    }
}
